package com.dtf.admin.manage.controller;

import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dtf.admin.manage.service.CodeGenerationBo;
import com.github.pagehelper.PageInfo;

@RequestMapping(value="/CodeGeneration")
@RestController
public class CodeGenerationController {
	
	Log log = LogFactory.getLog(CodeGenerationController.class);
	
	@Reference(version = "1.0.0")
	private CodeGenerationBo codeGenerationBo;
	
	@RequestMapping(value="/queryAllTable")
	public PageInfo queryAllTable(@RequestParam Map<String, Object> param) {
		return codeGenerationBo.queryAllTable(param);
	}
	
	@RequestMapping(value="/codeGeneration")
	public Map codeGeneration(@RequestParam Map<String, Object> param) {
		return codeGenerationBo.codeGeneration(param);
	}
	
}
